package com.example.junit5demo.controller;

import com.example.junit5demo.service.AccountService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author alexhu
 */
@RestController
@RequestMapping("/account")
public class AccountController {
    final AccountService accountService;

    public AccountController(AccountService accountService) {
        this.accountService = accountService;
    }

    @GetMapping("/info")
    public String getInfo() {
        return accountService.getInfo("msg");
    }

}
